<!-- Paging Start -->
<div class='filter silver' style='padding:4px 20px;'>
	<?php if ($pager['rowRange']): ?>
		Showing <?php echo current($pager['rowRange']) ?> - <?php echo end($pager['rowRange']) ?> of Total <?php echo $pager['itemCount'] ?> Records :: 
		Page <?php echo $pager['currentPageNumber'] ?> / <?php echo ceil($pager['itemCount']/$pager['pageSize']) ?>
	<?php else: ?>
		Your Query has return No Record
	<?php endif ?>
</div>
<div class='filter blue tail'>
	<div class='paging'>
		<?php //$this->widget('CLinkPager', $pager['CLinkPager'] ); ?>
		<?php //echo "<pre>"; print_r( $pager ); exit; ?>
		<nav>
			<ul class='yiiPager'>
				<?php if ($pager['pageRange']): ?>
					<?php $hide=''; ?>
					<li class='first <?php echo $hide ?>'>
						<a href="<?php echo $this->url ?>" ><?php echo $pager['firstPageLabel'] ?></a>
					</li>
					<li class='previous <?php echo $hide ?>'>
						<a href="<?php echo $this->url.'&page=' ?><?php echo ($pager['currentPageNumber']-1>=1)?$pager['currentPageNumber']-1:1 ?>" ><?php echo $pager['prevPageLabel'] ?></a>
					</li>
					<?php foreach ($pager['pageRange'] as $pageNumber ): 
						$selected='';
					?>
					<li class='page <?php echo $selected ?>'>
						<a href="<?php echo $this->url.'&page='.$pageNumber ?>" ><?php echo $pageNumber ?></a>
					</li>
					<?php endforeach ?>
					<?php $hide = ''; ?>
					<li class='next <?php echo $hide ?>'>
						<?php //echo "<pre>"; print_r( ($pager['currentPageNumber']+1) ); exit; ?>
						<a href="<?php echo $this->url.'&page=' ?><?php echo (($pager['currentPageNumber']+1)>=ceil($pager['itemCount']/$pager['pageSize']))?ceil($pager['itemCount']/$pager['pageSize']):$pager['currentPageNumber']+1 ?>" ><?php echo $pager['nextPageLabel'] ?></a>
					</li>
					<li class='last <?php echo $hide ?>'>
						<a href="<?php echo $this->url.'&page='.ceil($pager['itemCount']/$pager['pageSize'])?>" ><?php echo $pager['lastPageLabel'] ?></a>
					</li>
				<?php endif ?>
			</ul>
		</nav>
	</div>
</div>
<!-- Paging Ended -->